package com.psjj.mall.exception;

/**
 * @Auther:云尚学Java
 */
public class MallException extends RuntimeException {
    private Integer status;
    private String msg;

    public MallException(Integer status,String mgs){
        this.status = status;
        this.msg = mgs;
    }
    public MallException(MallExceptionEnum mallExceptionEnum){
        this.status = mallExceptionEnum.getStatus();
        this.msg = mallExceptionEnum.getMsg();
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
